use lib qw(D:\Data\Perl\devel\TemplateEnginePrptotype\lib);

use Template5::DTD;
use Template5::Element;
use Template5::TreeBuilder;
use Template5::Creater;
use Template5::XPath;
use Template5::PHPGenerator;
use Template5::Render;
use Template5::CondCheck;

#------------------------------------------------------------------------------- 
my $treeBuilder = Template5::TreeBuilder->new();
my $hHTMLNode = $treeBuilder->parse_file(qw(D:\Data\Perl\devel\TemplateEnginePrptotype\data\test_CondContainers.html));

my $dtd     = Template5::DTD->new();
my $creater = Template5::Element->new();

my $creater = Template5::Creater->new($dtd, $creater);
my $elm = $creater->create_element($hHTMLNode, {'iseditable' => 1, 'templatesdir' => qw(D:\Data\Perl\devel\TemplateEnginePrptotype\data)});

my $condcheck = Template5::CondCheck->new();
$condcheck->check($elm);

my $php = Template5::PHPGenerator->new($elm);
print $php->generate();

#my $render = Template5::Render->new($elm);
#print $render->render({'window' => 'qw'}); 
